import request from '../utils/request.js'
// 得到搜索建议
export const getSuggestion = (q) => {
    return request({
        method: 'GET',
        url: '/v1_0/suggestion',
        params: {
            q
        },

    })
}
// 得到搜索结果
export const getResult = (params) => {
    return request({
        method: 'GET',
        url: '/v1_0/search',
        params
    })
}
